import { Iform } from "@/components/base-ui/form";

export const searchFormConfig: Iform = {
  // labelWidth: 120,
  // itemStyle: {
  //   padding: "0px 0px"
  // },
  // colLayout: {
  //   span: 12
  // },
  // isFotter:true,
  // tableTitle: 'xxx表单',

  formItems: [
    {
      field: "name",
      type: "input",
      label: "用户名",
      rules: [
        {
          required: true,
          message: "Please input Activity name",
          trigger: "blur"
        },
        { min: 3, max: 5, message: "Length should be 3 to 5", trigger: "blur" }
      ],
      placeholder: "请输入"
    },
    {
      field: "password",
      type: "password",
      label: "密码",
      placeholder: "请输入"
    },
    {
      field: "sport",
      default: "1",
      type: "select",
      label: "喜欢的运动",
      placeholder: "请选择",
      options: [
        { title: "篮球", value: "0" },
        { title: "足球", value: "1" }
      ]
    },
    {
      field: "createTime",
      type: "datepicker",
      label: "创建时间",
      placeholder: "请选择时间",
      otherOptions: {
        startPlaceholder: "开始时间",
        endPlaceholder: "结束时间",
        type: "daterange",
        valueFormat: "x"
      }
    },
    {
      field: "name1",
      type: "input",
      label: "昵称",
      rules: [],
      placeholder: "请输入"
    }
  ]
};
